<?php

class EmbeddedSfGuardUserForm extends sfGuardUserForm {
  
  public function configure() {
    parent::configure();
    
    $this->useFields(array('email_address', 'first_name', 'last_name'));
    
    $this->validatorSchema['first_name']->setOption('required', true);
    $this->validatorSchema['first_name']->setMessage('required', 'Pflichtfeld');
    
    $this->validatorSchema['last_name']->setOption('required', true);
    $this->validatorSchema['last_name']->setMessage('required', 'Pflichtfeld');
    
    $this->validatorSchema['email_address']->setMessage('required', 'Pflichtfeld');
  }
}